package com.hqyj.onlineExamination.modules.exam.entity;

import com.hqyj.onlineExamination.modules.common.entity.AbstractEntity;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.List;


//测试成绩
@Entity
@Table(name = "exam_achievement")
public class Achievement extends AbstractEntity {
    //用户id
    private int userId;
    //试卷类型
    private String subject;
    // 试卷总分
    private Double totalScore;
    // 参考得分
    private String referenceScore;
    // 得分
    private Double score;
    //总时间
    private Integer totalTime;
    //实际用时
    private Integer spendTime;
    @Transient
    private List<Answer> answers;

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getSubject() {
        return subject;
    }

    public void setSubject(String subject) {
        this.subject = subject;
    }

    public Double getTotalScore() {
        return totalScore;
    }

    public void setTotalScore(Double totalScore) {
        this.totalScore = totalScore;
    }

    public String getReferenceScore() {
        return referenceScore;
    }

    public void setReferenceScore(String referenceScore) {
        this.referenceScore = referenceScore;
    }

    public Double getScore() {
        return score;
    }

    public void setScore(Double score) {
        this.score = score;
    }

    public Integer getTotalTime() {
        return totalTime;
    }

    public void setTotalTime(Integer totalTime) {
        this.totalTime = totalTime;
    }

    public Integer getSpendTime() {
        return spendTime;
    }

    public void setSpendTime(Integer spendTime) {
        this.spendTime = spendTime;
    }

    public List<Answer> getAnswers() {
        return answers;
    }

    public void setAnswers(List<Answer> answers) {
        this.answers = answers;
    }
}
